<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html 	xmlns="http://www.w3.org/1999/xhtml" 
		xmlns:ui="http://java.sun.com/jsf/facelets" 
		xmlns:h="http://java.sun.com/jsf/html"
		xmlns:f="http://java.sun.com/jsf/core" 
		xmlns:p="http://primefaces.org/ui" 
		xmlns:pe="http://primefaces.org/ui/extensions" >
<h:body>
	<p:dialog widgetVar="memberSuspendTerminateDialogWidget"
			id="memberSuspendTerminateDialogWidgetId" height="550" width="500" header="Suspend/Terminate Member"
			closable="true" draggable="true" resizable="false" modal="true" appendToBody="true">
			<h:form id="suspendTerminateMemberForm" >
			<p:messages id="messages" showDetail="true" autoUpdate="true" closable="true" />  
			<p:panel id="panel" header="Suspend/Terminate Member">  
				
					<h:panelGrid columns="3">  
					    <h:outputLabel for="name" value="Name: *" />  
					    <p:inputText id="name" value="#{memberMB.member.name}" required="true" label="Name" maxlength="100" readonly="true">
					    </p:inputText>
					    <p:message id="nameMsg" for="name" display="default" />  
					
						<h:outputLabel for="suspend" value="Suspend: *" />  
							<p:selectOneMenu id="suspend" value="#{memberMB.member.suspend}">  
					            <f:selectItem itemLabel="Yes" itemValue="true" />  
					            <f:selectItem itemLabel="No" itemValue="false" />  
					        </p:selectOneMenu> 
					    <p:message id="suspendMsg" for="suspend" display="default" /> 
					    
						<h:outputLabel for="status" value="Status: *" />  
							<p:selectOneMenu id="status" value="#{memberMB.member.active}">  
					            <f:selectItem itemLabel="Active" itemValue="true" />  
					            <f:selectItem itemLabel="Terminate" itemValue="false" />  
					        </p:selectOneMenu> 
					    <p:message id="statusMsg" for="status" display="default" /> 					    
					    
					</h:panelGrid> 
					
					<p:commandButton id="btnSave" value="Update" update=":memberList:memberTable" action="#{memberMB.suspendTerminateMember}"
					oncomplete="closeDialogIfSucess(xhr, status, args, memberSuspendTerminateDialogWidget 'memberSuspendTerminateDialogWidgetId')" />  
				
			</p:panel>
			</h:form>
		</p:dialog>	
</h:body>
</html>